package com.yyy.service;

import com.yyy.dao.RecordDao;
import com.yyy.entity.Category;
import com.yyy.entity.Record;

import java.util.Date;

/**
 * @Author：yyy
 * @Package：com.yyy.service
 * @Project：HuTuBiill
 * @name：ReordService
 * @Date：2024/11/11 22:17
 * @Filename：ReordService
 * record业务层
 */
public class ReordService {
    RecordDao dao=new RecordDao();

    public void add(int spend, Category c, String comment, Date date){
        Record r=new Record();
        r.spend=spend;
        r.cid=c.id;
        r.Comment=comment;
        r.date=date;
        dao.add(r);
    }
}
